﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Configuration;

namespace TuKu.Common
{
    public static class PathClass
    {
       public static string webpath = ConfigurationManager.AppSettings["webpath"];
       public static string templatepath = ConfigurationManager.AppSettings["templatepath"];
        public static void initSubGroupPath(string groupTitle,string subGroupTitle)
        {
            string path = webpath + "\\" + Common.Hz2Py.Convert(groupTitle)+ "\\" + Common.Hz2Py.Convert(subGroupTitle) + "\\images\\" + FileManager.CreateDateTimePath();
            if (!Directory.Exists(path))
            {
                FileManager.CreateFoler(path);
            }
        }
        public static void initGroupPath(string groupTitle)
        {
            string path = webpath + "\\" + Common.Hz2Py.Convert(groupTitle) + "\\images\\" + FileManager.CreateDateTimePath();
            if (!Directory.Exists(path))
            {
                FileManager.CreateFoler(path);
            }
        }
    }
}
